﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _01.School
{
    public class Student : Person
    {
        private readonly int id;

        public Student(string firstName, string secondName, int id)
            :base(firstName, secondName)
        {
            this.id = id;
        }

        public int Id
        {
            get
            {
                return this.id;
            }            
        }

        public override string ToString()
        {
            return string.Format("First name: {0}, Last name: {1}, id: {2}", this.firstName, this.secondName, this.id);
        }

    }
}
